package
{
	import com.gk.app.GK_Util;
	import com.gk.util.GameSprite;
	import com.gk.util.component.LabelButton;
	import com.gk.util.component.ScrollPanel;
	
	import flash.events.Event;
	import flash.events.MouseEvent;

	[SWF(width="760",height="600",backgroundColor="#cccccc")]
	public class Test extends GameSprite
	{

		private var l:LabelButton;

		private var scrollPanel:ScrollPanel;
		public function Test()
		{
			
			scrollPanel = new ScrollPanel(this,100,100);
			scrollPanel.setSize(400,150);
			scrollPanel.shadow = false;
			scrollPanel.autoHideScrollBar  =true;
			scrollPanel.addChild(GK_Util.getRectGraphic(400,80,1,1,1,1,1));
			
			stage.addEventListener(MouseEvent.CLICK,ck);
			
		}
		
		private function ck(e:MouseEvent):void
		{
			trace("sssss");
			scrollPanel.addChild(GK_Util.getRectGraphic(800,80,1,0xff0200,1,1,1));
//			scrollPanel.draw();
		}
		
	}
}